package com.example.cymjoe.huaweishopping.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.example.cymjoe.huaweishopping.bean.DTBean;

import java.util.List;

/**
 * Created by cymjoe on 2016/12/5.
 */
public class DTAdapter extends BaseAdapter {
    private List<DTBean.SkuListBean>data;
    private Context context;

    public DTAdapter(List<DTBean.SkuListBean> data, Context context) {
        this.data = data;
        this.context = context;
    }

    @Override
    public int getCount() {
        return data!=null?data.size():0;
    }

    @Override
    public Object getItem(int position) {
        return data.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {


        if (convertView==null){



        }
        return convertView;
    }
}
